package cate.common.rpc;

import cate.common.rpc.path.RpcCommonPath;
import cate.common.rpc.path.RpcLadderPath;
import cp.solution.rpc.codec.part.ComboCodecConfiguration;
import cp.solution.rpc.path.RpcStatPath;

/** 为游戏业务注册的Rpc配置 */
public class RpcReg4Game {

    private static final int K = 1024;

    public static void handle(ComboCodecConfiguration configuration) {
        configuration.regBufferSizeOutput(RpcCommonPath.MAIL_SEND_TO_GAME, 8*K);
        configuration.regBufferSizeOutput(RpcLadderPath.LOAD_OPPO_PS_G2C, 128*K);
        configuration.regBufferSizeInput(RpcStatPath.HERO_LOGS, 2*K);
        configuration.regBufferSizeInput("help.sync_adventure", 4*K);
        configuration.regBufferSizeInput("arena.sync-role-form", 4*K);
        configuration.regBufferSizeInput("gradepvp.fight-over", 8*K);
        configuration.regBufferSizeInput("teampvp.sync-team-data", 8*K);
    }

}
